const arr=[18,'You','breaking',99,'full'];
// 随机取
// console.log(Math.floor(Math.random()*arr.length));
const  random=(arr)=>arr[Math.floor(Math.random()*arr.length)];
const randomElement=random(arr);
console.log(randomElement);